import { NgModule } from '@angular/core'
import { Routes, RouterModule } from '@angular/router'
import { PostRiskEventListComponent } from './list/list.component'
import { PostRiskEventDeatilComponent } from './detail/detail.component'
import { ListReuseGuardClass } from '@shared/classes/ListReuseGuardClass'

const routes: Routes = [
  { path: '', redirectTo: 'list', pathMatch: 'full' },
  {
    path: 'list',
    component: PostRiskEventListComponent,
    canActivate: [ListReuseGuardClass],
    data: {
      title: '事后风控事件',
      titleI18n: 'MENU.RC.POST_RISK_EVENT',
      reuse: true
    },
  },
  {
    path: ':eventId/:intStoreCode/:storeScore/:handleStatus',
    component: PostRiskEventDeatilComponent,
    data: {
      title: '事后风控事件详情',
      titleI18n: 'MENU.RC.POST_RISK_EVENT_DETAIL',
    },
  },
]
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class PostRiskEventRoutingModule {}
